package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.SaleList;
import com.atguigu.jxc.entity.SaleListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Sanmier
 * @create 2020-12-30 13:08
 */
@Component
public interface SaleListGoodsDao {

    //保存新增销售单
    void saveSaleList(SaleList saleList);


    //保存新增销售单商品
    void saveSaleListGoods(SaleListGoods saleListGoods);


    //条件查询
    List<SaleList> getSaleSearchList(@Param("saleNumber") String saleNumber, @Param("customerId") Integer customerId,@Param("state")  Integer state,@Param("sTime") String sTime,@Param("eTime") String eTime);


    //查询销售单商品信息
    List<SaleList> getSaleGoodsList(@Param("saleListId") Integer saleListId);


    //销售单商品删除
    void deleteSaleListGoods(@Param("saleListId") Integer saleListId);


    //销售单删除
    void deleteSaleList(@Param("saleListId") Integer saleListId);


    //支付结算（修改进货单付款状态）
    void updateSaleList(Integer saleListId);
}
